<? if (!defined("BASEPATH")) exit("No direct script access allowed");

//Common::pr($getSubject);

if(isset($getSubject) and count($getSubject)) {
	echo	"<h2 class=\"blue title\">".$this->lang->line("AREAS_OF_STUDY")."</h2>";
	echo	"<div class=\"accordion\">";
	foreach($getSubject as $parentSubData) {
		if(isset($parentSubData["children"])) {
			echo		"<article class=\"box\">";
			echo			"<header>";
			echo				"<h3>".$parentSubData["subName"]."</h3>";
			echo			"</header>";
			echo			"<section class=\"wide\">";
			echo				"<ul>";
			foreach($parentSubData["children"] as $childSubData) {
				echo					"<li>".anchor(site_url()."majors/".$childSubData["subUrlName"], $childSubData["subName"])."</a></li>";
			}
			echo				"</ul>";
			echo			"</section>";
			echo		"</article>";
		}
	}
	echo	"</div>";
}